/**
 * Created by 黄忠园 on 2017/12/25.
 */
angular.module('module.repair')
    .controller('RepairChoseController', RepairChoseController);
RepairChoseController.$inject = ['$state', '$localStorage'];
function RepairChoseController($state, $localStorage) {
    var vm = this;
    if (!$localStorage[environmental + "shopid"]) {
        $localStorage.$reset();
        $state.go('login');
    }
    var shopid = $localStorage[environmental + "shopid"];
    vm.messageVisible = false; // 提示框初始化
    vm.cancelBtn = cancelBtn; // 提示框取消按钮
    vm.sureBtn = sureBtn; // 提示框确认按钮
    vm.chose = chose;

    function chose() {
        vm.messageVisible = true;
        vm.message = "该功能正在维护中！"
    }

    // 提示框取消按钮函数
    function cancelBtn() {
        vm.messageVisible = false;
    }

    // 提示框确认按钮函数
    function sureBtn() {
        vm.messageVisible = false;
    }

}